home *** CD-ROM | disk | FTP | other *** search
- Path: skivs.ski.org!usenet
- From: tron@eagle.ovik.se (Mikael Olsson)
- Newsgroups: comp.lang.c
- Subject: String matching snippet wanted
- Date: Wed, 28 Feb 1996 21:01:23 GMT
- Organization: Eagle Computing
- Message-ID: <4h2ftg$rek@skivs.ski.org>
- Reply-To: tron@eagle.ovik.se
- NNTP-Posting-Host: 194.17.221.200
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi ! Does anyone have a snippet of code that does an "intelligent"
- comparation of two strings ?
- No pattern matching or regex recognition needed, I just
- want a little function that compares two strings and tells me
- just *how* much alike eachother they were. (Much like many WWW search
- engines do, actually !)
-
- As an example, my name spelled in two ways :
- (The right way) :
- Mikael Olsson
- (The way someone could be spelling it) :
- Michael Olsen
-
- This virtual StrMatch() function would then tell me that these
- two strings were about 95 % alike.
-
- Preferably, the function wouldn't care what order the
- words came in, but no worries, if it doesn't I'll add that
- functionality myself. I just don't feel up to writing a
- string recognition function right now.
-
- Many TIA !
-
- /Mike
-
-
-
-